﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Mota.XMLControls
{

    public class DBTreeNode : TreeNode
    {
        private object parentValue;
        private object nodeValue;
        private object currencyManagerItem;

        public DBTreeNode()
        {
        }

        public DBTreeNode(object nodeValue, String text, object parentValue, object currencyItem,
            int imageIndex, int selectedImgIndex, int position)
        {
            this.parentValue = parentValue;
            this.nodeValue = nodeValue;
            this.Text = text;
            this.currencyManagerItem = currencyItem;
            this.ImageIndex = imageIndex;
            this.SelectedImageIndex = selectedImgIndex;
        }

        public DBTreeNode(object nodeValue, String text, object parentValue, object currencyItem)
        {
            this.parentValue = parentValue;
            this.Text = text;
            this.nodeValue = nodeValue;
            this.currencyManagerItem = currencyItem;
        }

        public object ParentValue
        {
            get
            {
                return parentValue;
            }
            set
            {
                this.parentValue = value;
            }
        }

        public object NodeValue
        {
            get
            {
                return nodeValue;
            }
            set
            {
                nodeValue = value;
            }
        }

        public object CurrencyItem
        {
            get
            {
                return currencyManagerItem;
            }
            set
            {
                currencyManagerItem = value;
            }
        }

    }
}
